package cn.tudo.egweibo2.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * 获取评论列表功能的VO类
 */
@Data
public class CommentVO {
    //评论ID、评论内容、评论时间、用户昵称
    private Long id;
    private String content;
    //调整时间格式和时区
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss", timezone = "GMT+8")
    private Date created;
    private String nickname;
}









